package com.laisheng.interview.service.impl;

import com.laisheng.interview.mapper.ExercisesMapper;
import com.laisheng.interview.model.DevelopmentExercises;
import com.laisheng.interview.service.ExercisesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExercisesServiceImpl implements ExercisesService {
    @Autowired
    private ExercisesMapper exercisesMapper;

    @Override
    public List<DevelopmentExercises> getByAccountingId(Long accountingId) {
        return exercisesMapper.selectByAccountingId(accountingId);
    }

    @Override
    public void save(DevelopmentExercises exercises) {
        exercisesMapper.insert(exercises);
    }
}